package com.itheima.mapper;

import com.itheima.pojo.Setmeal;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface SetmealMapper {
    /**
     * 获取所有套餐信息（无需分页）
     * @return
     */
    @Select("select * from t_setmeal")
    List<Setmeal> getSetmeal();

    /**
     * 根据id查询套餐详情
     * @param id
     * @return
     */
    //@Select("select * from t_setmeal where id = #{id}")
    Setmeal findById(Integer id);
}
